﻿<r:RibbonWindow 
    x:Class="StreamToMe.Flow.Windows.FlowMain"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
    xmlns:Controls="clr-namespace:NetworkVisualizer.Controls;assembly=NetworkVisualizer"
    xmlns:Windows="clr-namespace:StreamToMe.Flow.Windows"
    Title="Flow" MinHeight="800" MinWidth="1024">
    <DockPanel>
        <r:Ribbon DockPanel.Dock="Top">
            <r:Ribbon.Resources>
                <r:RibbonGroupSizeDefinitionCollection x:Key="RibbonLayout">
                    <r:RibbonGroupSizeDefinition>
                        <!-- Control sizes: L,L,L -->
                        <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                        <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                        <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                    </r:RibbonGroupSizeDefinition>
                    <r:RibbonGroupSizeDefinition>
                        <!-- Control sizes: L,M,M -->
                        <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                        <r:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True"/>
                        <r:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True"/>
                    </r:RibbonGroupSizeDefinition>
                    <r:RibbonGroupSizeDefinition>
                        <!-- Control sizes: L,S,S -->
                        <r:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True"/>
                        <r:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False"/>
                        <r:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False"/>
                    </r:RibbonGroupSizeDefinition>
                    <!-- Collapsed -->
                    <r:RibbonGroupSizeDefinition IsCollapsed="True" />
                </r:RibbonGroupSizeDefinitionCollection>
            </r:Ribbon.Resources>
            <r:Ribbon.ApplicationMenu>
                <r:RibbonApplicationMenu>
                    <r:RibbonApplicationMenu.Command>
                        <r:RibbonCommand
                            SmallImageSource="Images/Stream To Me-trans.png"
                            LargeImageSource="Images/Stream To Me-trans.png"
                            ToolTipTitle="Flow Information Navigator"
                            ToolTipDescription="Click here to start a new browsing session."/>
                    </r:RibbonApplicationMenu.Command>
                    <r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem.Command>
                            <r:RibbonCommand
                                LabelTitle="_Close"
                                LabelDescription="Close Flow"
                                Executed="OnCloseApplication"/>
                        </r:RibbonApplicationMenuItem.Command>
                    </r:RibbonApplicationMenuItem>
                </r:RibbonApplicationMenu>
            </r:Ribbon.ApplicationMenu>
            <r:RibbonTab Label="Browser">
                <r:RibbonTab.Groups>
                    <r:RibbonGroup GroupSizeDefinitions="{StaticResource RibbonLayout}">
                        <r:RibbonGroup.Command>
                            <r:RibbonCommand LabelTitle="Browser Options" SmallImageSource="images/Settings.png"/>
                        </r:RibbonGroup.Command>
                        <r:RibbonButton HorizontalAlignment="Center">
                            <r:RibbonButton.Command>
                                <r:RibbonCommand LabelTitle="Configure Browser" LargeImageSource="images/settings.png" Executed="OpenBrowserOptions"/>
                            </r:RibbonButton.Command>
                        </r:RibbonButton>
                    </r:RibbonGroup>
                    <r:RibbonGroup GroupSizeDefinitions="{StaticResource RibbonLayout}">
                        <r:RibbonGroup.Command>
                            <r:RibbonCommand LabelTitle="Navigation" SmallImageSource="images/mapsmall.png"/>
                        </r:RibbonGroup.Command>
                        <r:RibbonButton>
                            <r:RibbonButton.Command>
                                <r:RibbonCommand LabelTitle="Navigate" LargeImageSource="images/mapsmall.png" Executed="OpenNavigationPanel"/>
                            </r:RibbonButton.Command>
                        </r:RibbonButton>
                        <r:RibbonButton>
                            <r:RibbonButton.Command>
                                <r:RibbonCommand LabelTitle="Back" LargeImageSource="images/backicon.gif" Executed="OnBack"/>
                            </r:RibbonButton.Command>
                        </r:RibbonButton>
                        <r:RibbonSplitButton>
                            <r:RibbonSplitButton.Command>
                                <r:RibbonCommand LabelTitle="Forward" LargeImageSource="images/forwardicon.gif" Executed="OnForward"/>
                            </r:RibbonSplitButton.Command>
                        </r:RibbonSplitButton>
                    </r:RibbonGroup>
                </r:RibbonTab.Groups>
            </r:RibbonTab>
        </r:Ribbon>
        <Controls:NetworkPanel x:Name="networkPanel" Mode="Animating" NodeControllerStyle="{x:Null}">
            <Windows:WebNode Url="http://www.google.com">
            </Windows:WebNode>
        </Controls:NetworkPanel>
    </DockPanel>
</r:RibbonWindow>
